import re
url = "http://news.sina.com.cn/china/"
# match_re = re.match("/china/",url)
# lo = url.find("")
# if lo:
#     print("True")

# pattern = re.compile(u'/chin/')
# str = 'http://news.sina.com.cn/china/'
# if(pattern.search(str)):
#     print("True")
import datetime
import time

strs = "18:45:00"
timeb = time.strptime(strs,"%H:%M:%S")

# timeb = time.strftime("%H:%M",strs)
# time.mktime(string_toDatetime(strTime).timetuple())


timea = time.strftime(time.localtime(),"%H:%M")
print(timea)